package com.bit.blog.service;

import com.bit.blog.pojo.request.AddBlogRequest;
import com.bit.blog.pojo.request.UpdateBlogRequest;
import com.bit.blog.pojo.response.BlogDetailResponse;
import com.bit.blog.pojo.response.BlogInfoResponse;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;

import java.util.List;

public interface BlogService {
    List<BlogInfoResponse> getList();

    BlogDetailResponse getBlogDetail(@NotNull Integer userId);

    Boolean addBlog(@Valid AddBlogRequest blogInfoRequest);

    Boolean updateBlog(@Valid UpdateBlogRequest updateBlogRequest);

    Boolean deleteBlog(Integer blogId);
}
